/*    */ package com.zimbra.cs.client;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class LmcTag
/*    */ {
/*    */   private String mName;
/*    */   
/*    */ 
/*    */ 
/*    */ 
/*    */   private String mColor;
/*    */   
/*    */ 
/*    */ 
/*    */   private String mID;
/*    */   
/*    */ 
/*    */ 
/*    */   private long mUnreadCount;
/*    */   
/*    */ 
/*    */ 
/*    */   private boolean isUnreadCountValid;
/*    */   
/*    */ 
/*    */ 
/*    */ 
/*    */   public LmcTag(String id, String name, String color, long unreadCount)
/*    */   {
/* 33 */     this.mID = id;
/* 34 */     this.mName = name;
/* 35 */     this.mColor = color;
/* 36 */     if (unreadCount == -1L) {
/* 37 */       this.isUnreadCountValid = false;
/*    */     } else {
/* 39 */       this.isUnreadCountValid = true;
/* 40 */       this.mUnreadCount = unreadCount;
/*    */     }
/*    */   }
/*    */   
/*    */   public LmcTag(String id, String name, String color) {
/* 45 */     this(id, name, color, -1L);
/*    */   }
/*    */   
/*    */   public LmcTag() {}
/*    */   
/*    */   public void setID(String i) {
/* 51 */     this.mID = i;
/*    */   }
/*    */   
/*    */   public void setName(String n) {
/* 55 */     this.mName = n;
/*    */   }
/*    */   
/*    */   public void setColor(String c) {
/* 59 */     this.mColor = c;
/*    */   }
/*    */   
/*    */   public void setUnreadCount(int n) {
/* 63 */     this.mUnreadCount = n;
/* 64 */     this.isUnreadCountValid = true;
/*    */   }
/*    */   
/*    */   public String getID() {
/* 68 */     return this.mID;
/*    */   }
/*    */   
/*    */   public String getName() {
/* 72 */     return this.mName;
/*    */   }
/*    */   
/*    */   public String getColor() {
/* 76 */     return this.mColor;
/*    */   }
/*    */   
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   public long getUnreadCount()
/*    */     throws IllegalStateException
/*    */   {
/* 86 */     if (!this.isUnreadCountValid) {
/* 87 */       throw new IllegalStateException("Unread count not valid");
/*    */     }
/* 89 */     return this.mUnreadCount;
/*    */   }
/*    */   
/*    */   public String toString() {
/* 93 */     return "Name=\"" + this.mName + " \"id=\"" + this.mID + "\" color=\"" + this.mColor + "\" unreadCount=\"" + this.mUnreadCount + "\"";
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/client/LmcTag.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */